package com.moon.annotation.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.moon.annotation.dao.IBaseDao;

@Service("baseService")
public class BaseServiceImpl implements IBaseService {

	@Resource(name="baseDao")
	private IBaseDao baseDao;
	
	public void toDo() {
		System.out.println("=======BEGIN=======");
		baseDao.save();
		baseDao.update();
		baseDao.delete();
		return;
	}

	public IBaseDao getBaseDao() {
		return baseDao;
	}

	public void setBaseDao(IBaseDao baseDao) {
		this.baseDao = baseDao;
	}

}
